﻿using AdminApiTemplate.Infrastructures;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations.Schema;

namespace Promote.Infrastructures.Domains
{
    /// <summary>
    /// 用户的角色
    /// </summary>
    [Description("用户的角色")]
    [Table("UserRole")]
    public class UserRole : TableModelBase
    {
        /// <summary>
        /// 用户Id
        /// </summary>
        [Description("用户Id,Permission表的Id")]
        public long? UserId { get; set; }

        /// <summary>
        /// 角色Id
        /// </summary>
        [Description("角色Id,Role表的Id")]
        public long? RoleId { get; set; }
    }
}
